const classRoomManage = resolve =>
    require(['common/src/views/resource/classroom'], resolve);
const basicInfoManage = resolve =>
    require(['common/src/views/resource/classroom/basicInfoManage'], resolve);
const assignTeacher = resolve =>
    require(['common/src/views/resource/classroom/assignTeacher'], resolve);
const idleClassroom = resolve =>
    require(['common/src/views/resource/classroom/idleClassroom'], resolve);
const classroomBorrowingApplication = resolve =>
    require(['common/src/views/resource/classroom/classroomBorrowingApplication'], resolve);
const roomBorrowingInfo = resolve =>
    require(['common/src/views/resource/classroom/roomBorrowingInfo'], resolve);
const classroomReview = resolve =>
    require(['common/src/views/resource/classroom/classroomReview'], resolve);
const classroomReviewDetails = resolve =>
    require(['common/src/views/resource/classroom/classroomReviewDetails'], resolve);
const classroomUseQuery = resolve =>
    require(['common/src/views/resource/classroom/classroomUseQuery'], resolve);
const classroomStatusDetails = resolve =>
    require(['common/src/views/resource/classroom/classroomStatusDetails'], resolve);
const classroomUsageReport = resolve =>
    require(['common/src/views/resource/classroom/classroomUsageReport'], resolve);
const classroomUsageStatistics = resolve =>
    require(['common/src/views/resource/classroom/classroomUsageStatistics'], resolve);
const teachersManage = resolve =>
    require(['common/src/views/resource/teachers'], resolve);
const teachersQuery = resolve =>
    require(['common/src/views/resource/teachers/teachersQuery'], resolve);
const teachersSetting = resolve =>
    require(['common/src/views/resource/teachers/setting'], resolve);
const courseManage = resolve =>
    require(['common/src/views/resource/courses/courseManage'], resolve);
const courseQuery = resolve =>
    require(['common/src/views/resource/courses/courseQuery'], resolve);
const courseMaintain = resolve =>
    require(['common/src/views/resource/courses/courseMaintain'], resolve);
const courseLanguage = resolve =>
    require(['common/src/views/resource/courses/courseLanguage'], resolve);
const levelCourseManage = resolve =>
    require(['common/src/views/resource/courses/levelCourseManage'], resolve);
const courseApprove = resolve =>
    require(['common/src/views/resource/courses/courseApprove'], resolve);
const scienceDegreeMajor = resolve =>
    require(['common/src/views/resource/profession/scienceDegreeMajor'], resolve);
const professionDegreeMajor = resolve =>
    require(['common/src/views/resource/profession/professionDegreeMajor'], resolve);
const graduateScienceMajor = resolve =>
    require(['common/src/views/resource/profession/graduateScienceMajor'], resolve);
const graduateProfessionMajor = resolve =>
    require(['common/src/views/resource/profession/graduateProfessionMajor'], resolve);
const outsideSchoolApply = resolve =>
    require(['common/src/views/resource/teachers/outsideSchoolApply'], resolve);
const outsideSchoolQuery = resolve =>
    require(['common/src/views/resource/teachers/outsideSchoolQuery'], resolve);
const OnlineTeacherStatistics = resolve =>
    require(['common/src/views/resource/teachers/OnlineTeacherStatistics'], resolve);
const teacherManageConfig = resolve =>
    require(['common/src/views/resource/teachers/teacherManageConfig'], resolve);
const teacherQualificationApply = resolve =>
    require(['common/src/views/resource/teachers/teacherQualificationApply'], resolve);
const teacherQualificationApprove = resolve =>
    require(['common/src/views/resource/teachers/teacherQualificationApprove'], resolve);
const eduProfession = resolve =>
    require(['common/src/views/resource/profession/eduProfession'], resolve);
const campusProfession = resolve =>
    require(['common/src/views/resource/profession/campusProfession'], resolve);
const administrativeClass = resolve =>
  require(['common/src/views/resource/profession/administrativeClass'], resolve);
const queryProfession = resolve =>
    require(['common/src/views/resource/profession/queryProfession'], resolve);
const teacherQualificationStatistics = resolve =>
    require(['common/src/views/resource/teachers/teacherQualificationStatistics'], resolve);
//Postgraduate
const pgTeachersManage = resolve =>
    require(['common/src/views/resource/pgTeachers'], resolve);
const pgTeachersQuery = resolve =>
    require(['common/src/views/resource/pgTeachers/pgTeachersQuery'], resolve);
const pgOnlineTeacherStatistics = resolve =>
    require(['common/src/views/resource/pgTeachers/pgOnlineTeacherStatistics'], resolve);
const pgTeacherManageConfig = resolve =>
    require(['common/src/views/resource/pgTeachers/pgTeacherManageConfig'], resolve);
const pgTeacherQualificationApply = resolve =>
    require(['common/src/views/resource/pgTeachers/pgTeacherQualificationApply'], resolve);
const pgTeacherQualificationApprove = resolve =>
    require(['common/src/views/resource/pgTeachers/pgTeacherQualificationApprove'], resolve);
const pgTeacherQualificationStatistics = resolve =>
    require(['common/src/views/resource/pgTeachers/pgTeacherQualificationStatistics'], resolve);

const layout = resolve => require(['common/src/views/layout'], resolve);

const resource = {
    path: '/resource',
    name: 'resource',
    component: layout,
    children: [{
        path: '/classRoomManage',
        name: 'classRoomManage',
        component: classRoomManage
    },
    {
        path: '/basicInfoManage',
        name: 'basicInfoManage',
        component: basicInfoManage
    },
    {
        path: '/assignTeacher',
        name: 'assignTeacher',
        component: assignTeacher
    },
    {
        path: '/idleClassroom',
        name: 'idleClassroom',
        component: idleClassroom
    },
    {
        path: '/classroomBorrowingApplication',
        name: 'classroomBorrowingApplication',
        component: classroomBorrowingApplication
    },
    {
        path: '/classroomReview',
        name: 'classroomReview',
        component: classroomReview
    },
    {
        path: '/classroomReviewDetails',
        name: 'classroomReviewDetails',
        component: classroomReviewDetails
    },
    {
        path: '/classroomUseQuery',
        name: 'classroomUseQuery',
        component: classroomUseQuery
    },
    {
        path: '/classroomStatusDetails',
        name: 'classroomStatusDetails',
        component: classroomStatusDetails
    },
    {
        path: '/classroomUsageReport',
        name: 'classroomUsageReport',
        component: classroomUsageReport
    },
    {
        path: '/roomBorrowingInfo',
        name: 'roomBorrowingInfo',
        component: roomBorrowingInfo
        // meta: { nokeepalive: true }
    },
    {
        path: '/classroomUsageStatistics',
        name: 'classroomUsageStatistics',
        component: classroomUsageStatistics
    },
    {
        path: '/teachersManage',
        name: 'teachersManage',
        component: teachersManage
    },
    {
        path: '/teachersQuery',
        name: 'teachersQuery',
        component: teachersQuery
    },
    {
        path: '/teachersSetting',
        name: 'teachersSetting',
        component: teachersSetting
    },
    {
        path: '/courseManage',
        name: 'courseManage',
        component: courseManage
    },
    {
        path: '/courseQuery',
        name: 'courseQuery',
        component: courseQuery
    },
    {
        path: '/courseMaintain',
        name: 'courseMaintain',
        component: courseMaintain
    },
    {
        path: '/courseLang',
        name: 'courseLang',
        component: courseLanguage
    },
    {
        path: '/levelCourseManage',
        name: 'levelCourseManage',
        component: levelCourseManage
    },
    {
        path: '/courseApprove',
        name: 'courseApprove',
        component: courseApprove,
        meta: {
            nokeepalive: true
        }
    },
    {
        path: '/scienceDegreeMajor',
        name: 'scienceDegreeMajor',
        component: scienceDegreeMajor
    },
    {
        path: '/professionDegreeMajor',
        name: 'professionDegreeMajor',
        component: professionDegreeMajor
    },
    {
        path: '/graduateScienceMajor',
        name: 'graduateScienceMajor',
        component: graduateScienceMajor
    },
    {
        path: '/graduateProfessionMajor',
        name: 'graduateProfessionMajor',
        component: graduateProfessionMajor
    },
    {
        path: '/outsideSchoolApply',
        name: 'outsideSchoolApply',
        component: outsideSchoolApply
    },
    {
        path: '/outsideSchoolQuery',
        name: 'outsideSchoolQuery',
        component: outsideSchoolQuery
    },
    {
        path: '/OnlineTeacherStatistics',
        name: 'OnlineTeacherStatistics',
        component: OnlineTeacherStatistics
    },
    {
        path: '/teacherManageConfig',
        name: 'teacherManageConfig',
        component: teacherManageConfig
    },
    {
        path: '/teacherQualificationApply',
        name: 'teacherQualificationApply',
        component: teacherQualificationApply
    },
    {
        path: '/teacherQualificationApprove',
        name: 'teacherQualificationApprove',
        component: teacherQualificationApprove
    },
    {
        path: '/eduProfession',
        name: 'eduProfession',
        component: eduProfession
    },
    {
        path: '/campusProfession',
        name: 'campusProfession',
        component: campusProfession
    },
    {
        path: '/queryProfession',
        name: 'queryProfession',
        component: queryProfession
    },
    //行政班管理
    {
      path: '/administrativeClass',
      name: 'administrativeClass',
      component: administrativeClass
    },
    {
        path: '/teacherQualificationStatistics',
        name: 'teacherQualificationStatistics',
        component: teacherQualificationStatistics
    },
    //Postgraduate
    {
        path: '/pgTeachersManage',
        name: 'pgTeachersManage',
        component: pgTeachersManage
    },
    {
        path: '/pgTeachersQuery',
        name: 'pgTeachersQuery',
        component: pgTeachersQuery
    },
    {
        path: '/pgOnlineTeacherStatistics',
        name: 'pgOnlineTeacherStatistics',
        component: pgOnlineTeacherStatistics
    },
    {
        path: '/pgTeacherManageConfig',
        name: 'pgTeacherManageConfig',
        component: pgTeacherManageConfig
    },
    {
        path: '/pgTeacherQualificationApply',
        name: 'pgTeacherQualificationApply',
        component: pgTeacherQualificationApply
    },
    {
        path: '/pgTeacherQualificationApprove',
        name: 'pgTeacherQualificationApprove',
        component: pgTeacherQualificationApprove
    },
    {
        path: '/pgTeacherQualificationStatistics',
        name: 'pgTeacherQualificationStatistics',
        component: pgTeacherQualificationStatistics
    },
    ]
};

export default resource;
